package com.magicmovie.service;

import com.magicmovie.entity.ViewHistory;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
public interface ViewHistoryService {

    @RequestMapping(value = "/viewHistory/insert",method = RequestMethod.POST)
    void insert(@RequestBody ViewHistory viewHistory);

    @RequestMapping(value = "/viewHistory/findByCustomerId",method = RequestMethod.GET)
    Map<String, Object> findByCustomerId(@RequestParam("customerId") Integer customerId, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize);

}
